{% extends 'index.html' %}
{% block content %}
<table border="1">
    <tr>
        <th>用户名</th>
        <th>密码</th>
        <th>图片</th>
        <th>type</th>
        <th>删除</th>
    </tr>
    {% for i in show_list %}
    <tr>
        <td>{{ i.username }}</td>
        <td>{{ i.password }}</td>
        <td><img src="http://localhost:8000/{{ i.img }}" height="100" width="100"></td>
{#        http://localhost:8000/{{ i.img }}#}
        <td>
        {% if i.type == 0 %}
        学生
        {% else %}
        老师
        {% endif %}
        </td>
    <td><a href="/delete/?id={{ i.id }}">删除</a></td>
    </tr>
    {% endfor %}
</table>
{% endblock %}

